package com.starblink.android.basic.urllink

object UriLinkConfig {



    //从shcema协议拉起App
    const val SCHEME_GUANG = "getguang://guang"
    const val H5 = "/h5"

    //三方链接拉起App
    const val HTTP_STR = "http"
    const val HTTP_PRO_STR = "http://"
    const val HTTPS_PRO_STR = "https://"

    //短信跳转app标识
    const val turnappPath = "&tk=1"

    //心愿单
    const val wishlistPath = "wishlist"

    // 话题详情页
    const val tagPath = "tag?postId="
    const val productPath = "product-detail"
    const val picPath = "pic?postId="
    const val videoPath = "video?postId="
    const val blogPath = "blog?postId="

    /**
     * is a http link
     */
    fun String.isHttpLink() = startsWith(HTTP_PRO_STR) || startsWith(HTTPS_PRO_STR)

    fun String.isSchemaGUANG() = startsWith(SCHEME_GUANG)

}